package com.ytplayer.remote.services 
{
	import com.j4w.remote.RemoteObject;
	/**
	 * ...
	 * @author Jakub Wagner, J4W
	 */
	public class BaseService extends RemoteObject
	{
		
		public function BaseService() 
		{			
			super("http://youtube.j4w.cz");
		}
		
		override public function call(service:String, succesfullResultHandler:Function, parameters:Array = null, errorneousResultHandler:Function = null):void {
			trace(service + ":: Call Request, params = " + parameters);
			
			var callback:Function = function(o:Object) {
				trace(service + ":: Call Successful");
				succesfullResultHandler(o);
			}
			
			super.call(service, callback, parameters, errorneousResultHandler);
		}
		
	}

}